﻿
@{
    ViewData["Title"] = "Index";
}

<h2>Index</h2>
<script src="~/Scripts/jquery-2.2.2.min.js"></script>
<script>
    function Getuser() {
        $.ajax({
            url: "@Url.Action("GetUser","Home")",
            type: 'post',
            success: function (data) {
                console.log(data)
            }
        })
    }
    function tiaozhuan() {
        //$(location).attr('href', "");
        window.location.href = "@Url.Action("Login", "Access")"
    }
</script>
<input type="button" onclick="Getuser()" value="按钮" />
<input type="button" onclick="tiaozhuan()" value="跳转"/>
